<?php
require "../config/koneksi.php";
require "../config/library.php";

$id_jurusan=$_GET['id_jurusan'];
$sql_jur="select kode_jurusan from tb_proli where kd_proli='".$id_jurusan."'";
$qry_jur=mysql_query($sql_jur);
$hasil_jur=mysql_fetch_array($qry_jur);

$kode=$hasil_jur['kode_jurusan'];
//echo $kode;
$no_daftar=kdauto( $kode);
//echo 'no daf '.$no_daftar;
$arr_hasil=array('no_pendaftaran'=>$no_daftar);
echo json_encode($arr_hasil);
exit;
?>